[newbie]Webservice - Threads - close if no active threads, if any activen, then wait till its compl

Posted by Raj on Stack Overflow See other posts from Stack Overflow or by Raj
Published on 2010-06-18T09:20:23Z Indexed on 2010/06/18 9:23 UTC
Read the original article Hit count: 865

Hi

I have an ASP.Net webservice running.

When the system date changes, i want to close all the threads and restart them again, if the thread/s aren't doing any work. If any of the thread/s is in the process of doing some work(active threads), then i need to wait till the current thread/s complete its process and then close.

This will prevent from aborting any current process.

Any ideas on how i can perform such a task?

Thanks

PS:I am new to ASP.NET and Multithreading.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about multithreading